package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.maindata.domain.BomMaterial;
import com.qijian.maindata.domain.BomMaterialPre;
import org.apache.ibatis.annotations.Select;

/**
 * 生产BOM用料预算单据Mapper接口
 *
 * @author qijian
 * @date 2022-05-17
 */
public interface BomMaterialPreMapper extends BaseMapper<BomMaterialPre> {

    @Select("select count(0) from main_bom_material_pre WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    BomMaterialPre selectVoById(Long id);
}
